<template>
  <el-container class="wrapper">
    <!--侧边栏-->
    <el-aside width="auto">
      <CommonAside></CommonAside>
    </el-aside>

    <el-container>
      <!--头部-->
      <el-header>
        <CommonHeader></CommonHeader>
      </el-header>
      <!--主体-->
      <el-main><router-view></router-view></el-main>
    </el-container>
  </el-container>
</template>

<script>
import CommonAside from '../components/CommonAside'
import CommonHeader from '../components/CommonHeader'

export default {
  name: 'Main',
  components: {
    CommonAside,
    CommonHeader
  },
  data() {
    return {}
  }
}
</script>

<style scoped>
.wrapper {
  height: 100%;
}

.el-header {
  /*背景设置*/
  background-color: #98dafc;
}

.el-aside {
}

.el-main {
  /*设置边框为0*/
  padding-top: 0;
}
</style>
